package backend

import "github.com/gogf/gf/v2/frame/g"

type LoginIndexReq struct {
	g.Meta `path:"/login" method:"get" summary:"展示登录页面" tags:"登录"`
}

type LoginIndexRes struct {
	g.Meta `mime:"text/html" type:"string" example:"<html/>"`
}

type LoginDoReq struct {
	g.Meta       `path:"/login" method:"post" summary:"执行登录请求" tags:"登录"`
	Username     string `json:"username" v:"required#请输入账号"   dc:"账号"`
	Password     string `json:"password" v:"required#请输入密码"   dc:"密码(明文)"`
	Captcha      string `json:"captcha"  v:"required#请输入验证码" dc:"验证码"`
	LoginBrowser string `json:"login_browser"  dc:"登录浏览器"`
	LoginDevice  string `json:"login_device"  dc:"登录设备"`
}

type LoginDoRes struct {
	Referer  string   `json:"referer" dc:"引导客户端跳转地址"`
	AuthList []string `json:"auth_list" dc:"权限标识"`
}
